package cn.tedu.lucky.draw.server.repository;

import cn.tedu.lucky.draw.server.protocol.po.ActivityResult;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ActivityResultRepository extends JpaRepository<ActivityResult,Long> {
    //根据活动ID和用户ID获取当前用户已参与的抽奖次数
    int countByActivityIdAndUserId(Long activityId,Long userId);
}
